package com.dong.service;

import com.dong.pojo.Reader;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

public interface ReaderService {
    Reader selectReaderByUsername(String username);

    List<Reader> selectAllReader();

    int insertReader(Reader reader);

    int updateReaderState(@Param("readerId") int bookId, @Param("state") int state);

    int updateReader(Reader reader);

    List<Reader> selectLike(String keyword);
}
